package com.jiandian.dao;

import com.jiandian.entity.GameInfo;
import com.jiandian.page.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 游戏信息 Mapper
 *
 * @author Houqi Fu
 * @date 2019/01/24
 */
@Mapper
@Component
public interface GameInfoMapper {
    void deleteRefreshScopeByMaxId(@Param("id") int maxId, @Param("fromType") String fromType);

    GameInfo selectByPrimaryKey(Integer id);

    List<GameInfo> selectAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    List<GameInfo> batchQueryByIds(List<Integer> ids);

    int updateByPrimaryKey(GameInfo record);

    int insert(GameInfo record);

    int batchInsert(List<GameInfo> list);

    int batchDeleteById(List<Integer> ids);

    int deleteByPrimaryKey(Integer id);

    int deleteByMaxId(@Param("id") Integer id);

    int selectMaxId();
}
